package easy;

public class Solution_2011 {

    public int finalValueAfterOperations(String[] operations) {
        int num = 0;
        for (String operation : operations) {
            if (operation.charAt(0) == '+' || operation.charAt(2) == '+') {
                num++;
            } else {
                num--;
            }
        }
        return num;
    }
}
